package com.qfedu.zf.app.controller;

import com.qfedu.zf.app.service.ReportAddFeign;
import com.qfedu.zf.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * --- 天道酬勤 ---
 *
 * @author FanShuhu
 * @date 2024/6/21
 * @desc -- 代码敲烂 月薪过万--
 */

@RestController
@RequestMapping("/api/report")
public class ReportAddController {

    @Autowired
    ReportAddFeign reportAddFeign;

    @RequestMapping("/add")
    public R add(@RequestParam("info") String info, @RequestParam("userId") Integer userId) {
        return reportAddFeign.add(info,userId);
    }
}
